package com.CST.dto.ys;


import com.CST.common.YsPage;
import com.CST.entity.ys.YsSubject;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.time.YearMonth;

/**
 * @author qtx
 * @since 2023/5/28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class YsResultDTO extends YsPage<YsSubject> {

    private String departmentCode;

    private String deptName;

    private String subjectName;

    private String subjectType;

    @DateTimeFormat(pattern = "yyyy-MM")
    private YearMonth startTime;

    private LocalDateTime dbStartTime;

    @DateTimeFormat(pattern = "yyyy-MM")
    private YearMonth  endTime;

    private LocalDateTime dbEndTime;

    @ApiModelProperty("年度")
    private String year;

    @JsonIgnore
    @ApiModelProperty(hidden = true)
    private String san;
    @JsonIgnore
    @ApiModelProperty(hidden = true)
    private String xu;
    @JsonIgnore
    @ApiModelProperty(hidden = true)
    private String all;

    @JsonIgnore
    @ApiModelProperty(hidden = true)
    private String ally;

    private Integer start;

    private Integer end;
}
